﻿using SqlSugar;

namespace D.IdentityDbStore.Options
{
    /// <summary>
    /// 配置存储信息
    /// </summary>
    public class DbStoreOptions
    {
        /// <summary>
        /// 连接字符串
        /// </summary>
        public string ConnectionString { get; set; }

        /// <summary>
        /// DB类型
        /// </summary>
        public DbType DbType { get; set; }

        /// <summary>
        /// 是否启用自定清理Token ,默认不启动
        /// </summary>
        public bool EnableTokenCleanup { get; set; } = false;

        /// <summary>
        /// 清理token周期（单位秒），默认1小时
        /// </summary>
        public int TokenCleanupInterval { get; set; } = 3600;

        /// <summary>
        /// 获取或设置一次要删除的记录数。默认为100
        /// </summary>
        public int TokenCleanupBatchSize { get; set; } = 100;

    }
}
